package listnode;

public class FindKthToTail {
    int size;
    public ListNode FindKthToTail (ListNode pHead, int k) {
        // write code here
        if(pHead == null) {
            return pHead;
        }
        ListNode node = FindKthToTail(pHead.next,k);
        size++;
        if(size == k) {
            return pHead;
        }
        return node;
    }
}
